package com.yamanyar.weebill.view;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;

import com.yamanyar.weebill.domain.ActionPathElement;
import com.yamanyar.weebill.service.ActionPathElementService;

/**
 * Lists ActionPathElements. Created in Jun 28, 2008.
 * 
 * @author Kaan Yamanyar
 */
@org.springframework.stereotype.Component("listActionPathElement")
@Scope("request")
public class ListActionPathElements implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3156916209497186641L;
	private List<ActionPathElement> actionPathElements;
	private ActionPathElementService actionPathElementService;

	@Autowired
	public ListActionPathElements(
			ActionPathElementService actionPathElementService) {
		this.actionPathElementService = actionPathElementService;
		actionPathElements = this.actionPathElementService.findAll();
	}

	public List<ActionPathElement> getActionPathElements() {
		return actionPathElements;
	}

	public void setActionPathElements(List<ActionPathElement> actionPathElements) {
		this.actionPathElements = actionPathElements;
	}

}
